package com.ruoyi.novel.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户对象 novel_users
 * 
 * @author sjy
 * @date 2025-06-08
 */
public class Users extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 用户id */
    private Long userId;

    /** 用户名 */
    @Excel(name = "用户名")
    private String username;

    /** 密码 */
    private String passwordHash;

    /** 邮箱 */
    @Excel(name = "邮箱")
    private String email;

    /** 头像 */
    @Excel(name = "头像")
    private String avatarUrl;

    /** 手机号 */
    @Excel(name = "手机号")
    private String phone;

    /** 佐料 */
    private String salt;

    /** 是否VIP用户（0否 1是） */
    @Excel(name = "VIP用户", readConverterExp = "0=否,1=是")
    private Integer isVip;

    /** VIP过期时间 */
    @Excel(name = "VIP过期时间", dateFormat = "yyyy-MM-dd HH:mm:ss")
    private java.util.Date vipExpireTime;

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setUsername(String username) 
    {
        this.username = username;
    }

    public String getUsername() 
    {
        return username;
    }

    public void setPasswordHash(String passwordHash) 
    {
        this.passwordHash = passwordHash;
    }

    public String getPasswordHash() 
    {
        return passwordHash;
    }

    public void setEmail(String email) 
    {
        this.email = email;
    }

    public String getEmail() 
    {
        return email;
    }

    public void setAvatarUrl(String avatarUrl) 
    {
        this.avatarUrl = avatarUrl;
    }

    public String getAvatarUrl() 
    {
        return avatarUrl;
    }

    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }

    public void setSalt(String salt) 
    {
        this.salt = salt;
    }

    public String getSalt() 
    {
        return salt;
    }

    public void setIsVip(Integer isVip) 
    {
        this.isVip = isVip;
    }

    public Integer getIsVip() 
    {
        return isVip;
    }

    public void setVipExpireTime(java.util.Date vipExpireTime) 
    {
        this.vipExpireTime = vipExpireTime;
    }

    public java.util.Date getVipExpireTime() 
    {
        return vipExpireTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("userId", getUserId())
            .append("username", getUsername())
            .append("passwordHash", getPasswordHash())
            .append("email", getEmail())
            .append("avatarUrl", getAvatarUrl())
            .append("phone", getPhone())
            .append("salt", getSalt())
            .append("isVip", getIsVip())
            .append("vipExpireTime", getVipExpireTime())
            .toString();
    }
}
